﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class OnlineRegister : System.Web.UI.Page
{
    DataClassesDataContext db = new DataClassesDataContext();
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnGui_Click(object sender, EventArgs e)
    {
       /*try{
              RegisterOnline ro = new RegisterOnline();
              ro.YouFullName = txtTencuaban.Text;
              ro.YouPhoneNumber = txtSodienthoai.Text;
              ro.YouAddress = txtDiachi.Text;
              ro.YouEmail = txtEmail.Text;
              ro.TypeCompany = DropDownList1.SelectedValue;
              ro.CompanyNameEnglish = txtTenTiengAnh.Text;
              ro.CompanyAbbreviated = txtTentat.Text;
              ro.CompanyAddress = txtDiachiCty.Text;
              ro.Job = txtNganhNge.Text;
              ro.Capital = txtVon.Text;
              ro.LawName = txtHotendaidien.Text;
              ro.IdentityCard = txtCMND.Text;
              ro.BirthDate = BasicDatePicker1.SelectedDate;
              ro.DateProvide = BasicDatePicker2.SelectedDate; 
              ro.LocationProvide = txtNoicap.Text;
              ro.AddressResident = txtThuongtru.Text;
              ro.AddressPresent = txtHientai.Text;
              db.RegisterOnlines.InsertOnSubmit(ro);
              db.SubmitChanges();
              Panel1.Visible=true;
              Panel2.Visible = false;
       }
        catch{
              Panel2.Visible =true;
              Panel1.Visible = false;
        }*/
        txtTencuaban.Text = null;
        txtSodienthoai.Text = null;
        txtDiachi.Text = null;
        txtEmail.Text= null;
      
        txtTenTiengAnh.Text = null;
        txtTentat.Text = null;
        txtDiachiCty.Text = null;
        txtNganhNge.Text = null;
        txtVon.Text = null;
        txtHotendaidien.Text = null;
        txtCMND.Text = null;
        txtNoicap.Text = null;
        txtThuongtru.Text = null;
        txtHientai.Text = null;


    }
}